"""EvaManageSys URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf.urls.static import static
from django.urls import path
import EVA.views as views
from EvaManageSys import settings

urlpatterns = [
    path('admin/', admin.site.urls),

    path('admin_login/',views.admin_login),
    path('admin_register/',views.admin_register),
    path('admin_loginout/',views.admin_loginout),
    path('admin_index/',views.admin_index),
    path('admin_userlist/',views.admin_userlist),
    path('admin_adduser/',views.admin_adduser),
    path('admin_deluser/',views.admin_deluser),
    path('admin_edituser/',views.admin_edituser),
    path('admin_user_eva/',views.admin_user_eva),
    path('admin_user_catEva/',views.admin_user_catEva),
    path('admin_eva_app/',views.admin_eva_app),
    path('admin_to_app/',views.admin_to_app),
    path('admin_eva_apped/',views.admin_eva_apped),
    path('admin_eva_unapp/',views.admin_eva_unapp),
    path('admin_eva_delapp/',views.admin_eva_delapp),
    path('admin_upload_word/',views.admin_upload_word),
    path('admin_user_excel/',views.admin_user_excel),
    path('admin_update_excel/',views.admin_update_excel),

    # ------------------------------------------
    path('user_login/',views.user_login),
    path('user_register/',views.user_register),
    path('user_index/',views.user_index),
    path('user_loginout/',views.user_loginout),
    path('user_edit/',views.user_edit),
    path('user_edit_pwd/',views.user_edit_pwd),
    path('user_eva/',views.user_eva),
    path('eva_add/',views.eva_add),
    path('eva_photo/',views.eva_photo),
    path('eva_del/',views.eva_del),
    path('accounts/login/',views.user_login),

]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
